﻿using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;

namespace PHMEE.Admin
{
    /// <summary>
    /// 轴承库导入DTO
    /// </summary>
    [ExcelImporter(IsLabelingError = true)]
    public class BearLibImportDto
    {
        /// <summary>
        /// 轴承库Id
        /// </summary>
        [ImporterHeader(Name = "轴承库Id")]
        [Required]
        public Guid Id { get; set; }

        /// <summary>
        /// 轴承库厂商Id
        /// </summary>
        [ImporterHeader(Name = "轴承库厂商Id")]
        [Required]
        public int BearFactoryId { get; set; }

        /// <summary>
        /// 轴承库型号
        /// </summary>
        [ImporterHeader(Name = "轴承库型号")]
        [Required]
        public string Model { get; set; }

        /// <summary>
        /// 滚子数
        /// </summary>
        [ImporterHeader(Name = "滚子数")]
        [Required]
        public double NB { get; set; }

        /// <summary>
        /// 外圈故障特征频率
        /// </summary>
        [ImporterHeader(Name = "外圈故障特征频率")]
        [Required]
        public double BPFO { get; set; }

        /// <summary>
        /// 内圈故障特征频率
        /// </summary>
        [ImporterHeader(Name = "内圈故障特征频率")]
        [Required]
        public double BPFI { get; set; }

        /// <summary>
        /// 保持架故障特征频率
        /// </summary>
        [ImporterHeader(Name = "保持架故障特征频率")]
        [Required]
        public double FTFI { get; set; }

        /// <summary>
        /// 滚动体故障特征频率
        /// </summary>
        [ImporterHeader(Name = "滚动体故障特征频率")]
        [Required]
        public double BSF { get; set; }

        /// <summary>
        /// 接触角
        /// </summary>
        [ImporterHeader(Name = "接触角")]
        [Required]
        public double ContactAngle { get; set; }
    }
}
